import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/sysUser/list',
    method: 'post',
    params: query
  })
}

export function see(id) {
  return request({
    url: '/sysUser/see/' + id,
    method: 'post'
  })
}

export function modify(params) {
  return request({
    url: '/sysUser/modify',
    method: 'post',
    params
  })
}


export function findRoles() {
  return request({
    url: '/sysUser/findRoles',
    method: 'post'
  })
}

export function add(params) {
  return request({
    url: '/sysUser/add',
    method: 'post',
    params
  })
}

export function updatePwd(params) {
  return request({
    url: '/sysUser/updatePwd',
    method: 'post',
    params
  })
}


export function remove(ids) {
  return request({
    url: '/sysUser/remove',
    method: 'post',
    params:{
      ids:ids
    }
  })
}

